package handlers

import (
	"GIN-API/global"
	"github.com/gin-gonic/gin"
)

func Ping(c *gin.Context) {
	global.Redis.Set(c, "test", "pingtest", 0)
	c.JSON(200, gin.H{
		"message": "pong",
		"redis":   global.Redis.Get(c, "test").Val(),
	})
}
